{% extends 'layout.html' %}

{# Set variables for base layour #}
{% set active_page = 'user' %}
{% set title = '' %}

{% block content %}

    <div class="user_activity">

        {% for comment in replies %}
            
            <div>
                {{ comment.text|md2html|safe }}
                
                {# Post info #}
                <div class="info">
                    <a href="{{ url ('post', hash_id=comment.postHashId) }}#comment-{{ comment.hashId }}">read</a>
                    <a href="{{ url ('reply', hash_id=comment.hashId) }}">reply</a>
                    —
                    by <a href="{{ url ("user_public", username=comment.username) }}">{{ comment.username }}</a> <time title="{{ comment.created|title }}" datetime="{{ comment.created|datetime }}"><em> {{ comment.created|ago }} </em></time> on <a href="{{ url ('post', hash_id=comment.postHashId) }}">{{ comment.postTitle }}</a>
                </div>
            </div>
            
        {% endfor %}

    </div>
        
{% endblock %}
